﻿<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file. -->
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title></title>
    <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.1.min.js"></script>

    <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric.min.css">
    <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric.components.min.css">

    <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js" type="text/javascript"></script>

    <!-- To enable offline debugging using a local reference to Office.js, use:                        -->
    <!--    <script src="../../Scripts/Office/MicrosoftAjax.js" type="text/javascript"></script>       -->
    <!--    <script src="../../Scripts/Office/1.1/office.js" type="text/javascript"></script>          -->

    <link href="../App.css" rel="stylesheet" type="text/css" />
    <script src="../App.js" type="text/javascript"></script>

    <link href="LoadingAndWritingOOXML.css" rel="stylesheet" type="text/css" />
    <script src="LoadingAndWritingOOXML.js" type="text/javascript"></script>
</head>
<body>
     
        <div class="ms-font-xl ms-fontWeight-semibold padding ms-bgColor-themeDark ms-fontColor-white ">Set Content Using OOXML</div>
    <!-- The functions to insert various content types or display their OOXML markup are wired to the 11 buttons below in the file LoadingAndWritingOOXML.js-->
    <!-- The onchange event in the two radio buttons on this page calls the clickHandler function from LoadingAndWritingOOXML.js to reset the wiring for the 11 buttons below-->

    <div id="content-main">
      <div class="padding ms-font-m">
        <div id="Content">
            <div class="ms-font-m">
                <p>Use this app to insert samples from a range of rich content types, as listed below. Or show the Office Open XML (OOXML) markup for a selected content type right on the page. Select an option and then click the button for the content type you need.</p>
            </div>
            <p>
                <input type="radio" name="radChoice" id="setOOXMLContent" value="content" checked="checked" onchange="clickHandler();" />
                <label for="setOOXMLContent" style="margin-right:20px; font-weight:bold;">Set Content</label>
                <input type="radio" name="radChoice" id="setOOXMLMarkup" value="markup" onchange="clickHandler();" />
                <label for="setOOXMLMarkup" style="font-weight:bold;">Show me the OOXML</label>
            </p>
            <button class="ms-Button ms-Button--command" id="setFText">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Formatted Text</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setSText">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Styled Text</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setImage">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Simple Image</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setPhoto">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Formatted Photo</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setBox">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Text Box</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setShape">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Shape</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setControl">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Content Control</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setFTable">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Formatted Table</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setSTable">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Styled Table</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setSmartArt">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set SmartArt Diagram</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setChart">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">Set Chart</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
            <button class="ms-Button ms-Button--command" id="setDFZQ">
                <span class="ms-Button-icon"><i class="ms-Icon ms-Icon--circlePlus"></i></span>
                <span class="ms-Button-label">东方证券</span>
                <span class="ms-Button-description">Description of the action this button takes</span>
            </button>
        </div>
        </div>
    </div>
</body>
</html>
<!-- Word-Add-in-Load-and-write-Open-XML, https://github.com/OfficeDev/Word-Add-in-Load-and-write-Open-XML


Copyright (c) Microsoft Corporation
All rights reserved.

MIT License:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-->
